//
//  LZPayGoodsCell.m
//  com.modada.new
//
//  Created by ferver7 on 2019/5/19.
//  Copyright © 2019 ferver7. All rights reserved.
//

#import "LZPayGoodsCell.h"
#import "OrderTwoKindCell.h"

@implementation LZPayGoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selfTableView.delegate = self;
    self.selfTableView.dataSource = self;
}

-(void)setGoodArr:(NSArray *)goodArr
{
    _goodArr = goodArr;
    [self.selfTableView reloadData];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.goodArr.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    OrderTwoKindCell * itemCell = mGetTableViewCell(@"orderTwoKindCell");
    NSMutableDictionary * goodInfo = self.goodArr[indexPath.row];
   
    itemCell.xinHaoLabel.text = [NSString stringWithFormat:@"型号:%@",goodInfo[@"attName"]];
    itemCell.priceLabel.text = [NSString stringWithFormat:@"单价:%@",goodInfo[@"price"]];
    itemCell.numsLabel.text = [NSString stringWithFormat:@"x%@",goodInfo[@"quantity"]];
    return itemCell;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
